رفع الملفات

1- قم بفتح مجلد upload المرفق مع الشرح ثم قم برفع كلاً من :

     جميع ملفات مجلد clientscript الى مجلد clientscript.

     جميع مجلدات المجلد images الى مجلد images.

رموز BBCODE

قم بالدخول إلى لوحة التحكم ثم اختر إدارة أكواد bbcode ثم قم بأضافة الرموز التاليه:

أضف الأتي:

إستخدام {option} ؟

Replacement / الكوود البديل

الكوود / Tag

نعم

<marquee direction="{option}" scrolldelay="120">{param}</marquee>

MOVE
نعم

<div align="{option}">{param}</div>

ALIGN
لا

<div align="center"><embed SRC="{param}" type="audio/x-pn-realaudio-plugin" CONSOLE="Clip1"
CONTROLS="ImageWindow,ControlPanel,StatusBar" HEIGHT="60" WIDTH=300" AUTOSTART="false"></embed>
</div>

RAMV
لا

<div align="center"><embed SRC="{param}" type="audio/x-pn-realaudio-plugin" CONSOLE="Clip1"
CONTROLS="ControlPanel,StatusBar" HEIGHT="60" WIDTH=300"
AUTOSTART="false"></embed>
</div>

RAMS
لا

<div align="center">
<embed src="{param}">
</embed>
</div>

MEDIA
نعم

<EMBED src="{option}" quality=high loop=true menu=false TYPE="application/x-shockwave-flash"</EMBED>

FLASH
لا

<div tag="1" id="myglinttext" style="filter:alpha(opacity=0);width:100%;padding:3;margin:-3">{param}</div>

GLINT
لا

<span id="myblinktext">{param}</span>

BLINK
نعم

<div style="filter:glow(Color={option},Strength=5); width:100%;padding:3;margin:-3">{param}</div>

GLOW
تعديل الملفات

1- إفتح ملف functions_bbcodeparse.php

1-1 إبحث عن:

$bbcodes['custom']['recurse']['highlight'][0] = array('replace_html' => "<span class=\"highlight\">\\7</span>");


1-2 أضف تحته:

$bbcodes['custom']['find']['[poem'] = '#\[poe[m](\s|&quot;|"|\'|)(.*)\\1\](<br>|<br />|\r\n|\n|\r)??(.*)(<br>|<br />|\r\n|\n|\r)??\[/poe[m]\]#esiU';
$bbcodes['custom']['replace']['[poem'] = "handle_bbcode_normal('\\4', '\\2', '', 'poem')";
$bbcodes['custom']['recurse']['poem'][0] = array('handler' => 'handle_bbcode_normal');

$bbcodes['custom']['find']['[frame='] = '#\[frame=(&quot;|"|\'|)([0-9]+)[ ]+([0-9]+)[ ]*\\1\](<br>|<br />|\r\n|\n|\r)??(.*)(<br>|<br />|\r\n|\n|\r)??\[/frame\]#esiU';
$bbcodes['custom']['replace']['[frame='] = "handle_bbcode_normal('\\5', '\\2', '\\3', 'frame')";
$bbcodes['custom']['recurse']['frame'][0] = array('handler' => 'handle_bbcode_normal');

$bbcodes['custom']['find']['[grade='] = '#\[grade(&quot;|"|\'|)(.*)\\1\](<br>|<br />|\r\n|\n|\r)??(.*)(<br>|<br />|\r\n|\n|\r)??\[/grade\]#esiU';
$bbcodes['custom']['replace']['[grade='] = "handle_bbcode_normal('\\4', '\\2', '', 'grade')";
$bbcodes['custom']['recurse']['grade'][0] = array('handler' => 'handle_bbcode_normal');

$bbcodes['custom']['find']['[hr]'] = '#\[hr\]#esiU';
$bbcodes['custom']['replace']['[hr]'] = "handle_bbcode_normal('hr', '', '', 'hr')";
$bbcodes['custom']['recurse']['hr'][0] = array('handler' => 'handle_bbcode_normal');

$bbcodes['custom']['find']['[line]'] = '#\[line\]#esiU';
$bbcodes['custom']['replace']['[line]'] = "handle_bbcode_normal('line', '', '', 'hr')";
$bbcodes['custom']['recurse']['line'][0] = array('handler' => 'handle_bbcode_normal');


1-3 إبحث عن:
	?>

1-4 أضف بالأعلى:

// For Magic-Box Added By AL3NDALEEB
function handle_bbcode_normal($message, $param1 = '', $param2 = '', $type = '' )
{

// remove empty codes
if (trim($message) == '' || $type == '')
{
return '';
}

// remove unnecessary escaped quotes
$message = strip_smilies(str_replace('\\"', '"', $message));

if($type == 'poem'){

$param1 = str_replace('\\"', '"', $param1);
$param1 = str_replace('"', '&quot;', $param1);

// remove smilies from param
$param1 = strip_smilies($param1);
$html = '<div tag="'.$param1.'" style="display:none">'.$message.'</div><script>doPoem(0)</script>';

}elseif($type == 'frame'){

$param1 = str_replace('\\"', '"', $param1);
$param1 = str_replace('"', '&quot;', $param1);
$param2 = str_replace('\\"', '"', $param2);
$param2 = str_replace('"', '&quot;', $param2);

// remove smilies from param
$param1 = strip_smilies($param1);
$param2 = strip_smilies($param2);
$html = '<div id="myframe" tag="'.$param1.'|'.$param2.'|<smallfont>" style="display:none">'.$message.'</div><script>drawFrame()</script>';

}elseif($type == 'hr'){

$html = '<hr noshade size=1>';

}elseif($type == 'grade'){

$param1 = str_replace('\\"', '"', $param1);
$param1 = str_replace('"', '&quot;', $param1);

// remove smilies from param
$param1 = strip_smilies($param1);
$html = '<div id="mygradient" tag="'.$param1.'" style="display:none">'.$message.'</div><script>drawGradient()</script>';

}

return $html;
}
 


   1-5 إحفظ الملف وقم برفعه للموقع .
   ملحوظه: الملف المعدل موجود في مجلد edited files.
القوالب

إفتح قالب headinclude

إستبدل محتوياته بالأتي:

<meta http-equiv="Content-Type" content="text/html; charset=$stylevar[charset]" />
<meta name="keywords" content="$vboptions[keywords]" />
<meta name="description" content="$vboptions[description]" />

<!-- CSS Stylesheet -->
$style[css]
<if condition="is_browser('opera')">
<style type="text/css">
ul, ol { padding-left:20px; }
</style>
</if>
<!-- / CSS Stylesheet -->

<script type="text/javascript">
<!--
var SESSIONURL = "$session[sessionurl_js]";
var IMGDIR_MISC = "$stylevar[imgdir_misc]";
// -->
</script>

<script type="text/javascript" src="clientscript/vbulletin_global.js"></script>
<if condition="$show['popups']">
<script type="text/javascript" src="clientscript/vbulletin_menu.js"></script>
</if>
<script type="text/javascript" src="clientscript/poem.js"></script>


   ملحوظه :
   التعديلات باللون الأحمر.
   نسخه من القالب المعدل موجوده في مجلد templates.


إفتح قالب editor_toolbar_standard

إستبدل محتوياته بالأتي:

<!-- load scripts -->
$vBeditTemplate[clientscript]

<!-- start message area --><div id="vBulletin_editor" style="text-align:$stylevar[left]"><!-- / start message area -->


<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
<td colspan="2">



<!-- start control bar --><div id="controlbar"><!-- / start control bar -->

<!-- first control row -->
<div class="controlholder">
<table cellpadding="0" cellspacing="1" border="0" width="100%">
<tr>
<if condition="$show['font_bbcode']">
<td>
<select id="fontselect" onchange="fontformat(this.options[this.selectedIndex].value, 'FONT')">
<option value="">$vbphrase[font_standard_editor]</option>
<script type="text/javascript"> build_fontoptions(false); </script>
</select>&nbsp;
</td>
</if>
<if condition="$show['size_bbcode']">
<td>
<select id="sizeselect" onchange="fontformat(this.options[this.selectedIndex].value, 'SIZE')">
<option value="">$vbphrase[size_standard_editor]</option>
<script type="text/javascript"> build_sizeoptions(false); </script>
</select>&nbsp;
</td>
</if>
<if condition="$show['color_bbcode']">
<td>
<select id="colorselect" onchange="fontformat(this.options[this.selectedIndex].value, 'COLOR')">
<option value="">$vbphrase[color_standard_editor]</option>
<script type="text/javascript"> build_coloroptions(false); </script>
</select>&nbsp;
</td>
</if>
<td class="smallfont" width="100%" align="$stylevar[right]">
<span class="imagebutton">$vbphrase[close_current_tag] <input type="button" style="color: red; font: bold 11px verdana" value="$vbphrase[x]" onclick="closetag(this.form)" /></span>
</td>
</tr>
</table>
</div>
<!-- / first control row -->

<!-- second control row -->
<div class="controlholder">
<table cellpadding="0" cellspacing="1" border="0" width="100%">
<tr>
<if condition="$show['basic_bbcode']">
<td><div class="imagebutton"><a href="#" onclick="return vbcode('B', '')" accesskey="b"><img class="image" src="$stylevar[imgdir_editor]/bold.gif" alt="$vbphrase[bold]" width="21" height="20" border="0" /></a></div></td>
<td><div class="imagebutton"><a href="#" onclick="return vbcode('I', '')" accesskey="i"><img class="image" src="$stylevar[imgdir_editor]/italic.gif" alt="$vbphrase[italic]" width="21" height="20" border="0" /></a></div></td>
<td><div class="imagebutton"><a href="#" onclick="return vbcode('U', '')" accesskey="u"><img class="image" src="$stylevar[imgdir_editor]/underline.gif" alt="$vbphrase[underline]" width="21" height="20" border="0" /></a></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" border="0" /></td>
</if>
<if condition="$show['align_bbcode']">
<td><div class="imagebutton"><a href="#" onclick="return vbcode('LEFT', '')"><img class="image" src="$stylevar[imgdir_editor]/justifyleft.gif" alt="$vbphrase[align_left]" width="21" height="20" border="0" /></a></div></td>
<td><div class="imagebutton"><a href="#" onclick="return vbcode('CENTER', '')"><img class="image" src="$stylevar[imgdir_editor]/justifycenter.gif" alt="$vbphrase[align_center]" width="21" height="20" border="0" /></a></div></td>
<td><div class="imagebutton"><a href="#" onclick="return vbcode('RIGHT', '')"><img class="image" src="$stylevar[imgdir_editor]/justifyright.gif" alt="$vbphrase[align_right]" width="21" height="20" border="0" /></a></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" border="0" /></td>
<td><div class="imagebutton"><a href="#" onclick="return vbcode('INDENT', '')"><img class="image" src="$stylevar[imgdir_editor]/indent.gif" alt="$vbphrase[indent]" width="21" height="20" border="0" /></a></div></td>
</if>
<if condition="$show['list_bbcode']">
<td><div class="imagebutton"><a href="#" onclick="return dolist()"><img class="image" src="$stylevar[imgdir_editor]/insertunorderedlist.gif" alt="$vbphrase[create_list]" width="21" height="20" border="0" /></a></div></td>
</if>
<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" border="0" /></td>
<if condition="$show['img_bbcode']">
<td><div class="imagebutton"><a href="#" onclick="return vbcode('IMG', 'http://')"><img src="$stylevar[imgdir_editor]/insertimage.gif" alt="$vbphrase[insert_image]" width="21" height="20" border="0" /></a></div></td>
</if>
<td><div class="imagebutton"><a href="#" onclick="namedlink('URL')"><img src="$stylevar[imgdir_editor]/createlink.gif" alt="$vbphrase[insert_hyperlink]" width="21" height="20" border="0" /></a></div></td>
<td><div class="imagebutton"><a href="#" onclick="namedlink('EMAIL')"><img src="$stylevar[imgdir_editor]/email.gif" alt="$vbphrase[insert_email_link]" width="21" height="20" border="0" /></a></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" border="0" /></td>
<if condition="$show['code_bbcode']">
<td><div class="imagebutton"><a href="#" onclick="return vbcode('CODE', '')"><img src="$stylevar[imgdir_editor]/code.gif" alt="$vbphrase[wrap_code_tags]" width="21" height="20" border="0" /></a></div></td>
</if>
<if condition="$show['html_bbcode']">
<td><div class="imagebutton"><a href="#" onclick="return vbcode('HTML', '')"><img src="$stylevar[imgdir_editor]/html.gif" alt="$vbphrase[wrap_html_tags]" width="21" height="20" border="0" /></a></div></td>
</if>
<if condition="$show['php_bbcode']">
<td><div class="imagebutton"><a href="#" onclick="return vbcode('PHP', '')"><img src="$stylevar[imgdir_editor]/php.gif" alt="$vbphrase[wrap_php_tags]" width="21" height="20" border="0" /></a></div></td>
</if>
<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>
<td><div class="imagebutton"><a href="#" onclick="return vbcode('QUOTE', '')"><img src="$stylevar[imgdir_editor]/quote.gif" alt="$vbphrase[wrap_quote_tags]" width="21" height="20" border="0" /></a></div></td>
$vBeditTemplate[extrabuttons]
<td class="smallfont" width="100%" align="$stylevar[right]">
<span class="imagebutton">$vbphrase[close_all_tags] <input type="button" style="color: red; font: bold 11px verdana" value="$vbphrase[x]" onclick="closeall(this.form)" /></span>
</td>
</tr>
</table>
</div>
<!-- / second control row -->
<!-- third control row -->
<div id="toolboxholder" class="controlholder">
<table cellpadding="0" cellspacing="1" border="0">
<tr>
<td><div class="imagebutton" id="glow"><img src="images/toolbox/glow.gif" alt="وضع إشعاعي" /></div></td>
<td><div class="imagebutton" id="blink"><img src="images/toolbox/blink.gif" alt="وميض" /></div></td>
<td><div class="imagebutton" id="glint"><img src="images/toolbox/glint.gif" alt="بريق" /></div></td>
<td><div class="imagebutton" id="gradient"><img src="images/toolbox/gradient.gif" alt="ألوان متدرجة" /></div></td>

<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="18" /></td>

<td><div class="imagebutton" id="rplayer"><img src="images/toolbox/rplayer.gif" alt="تشغيل ملف رييل بلاير (rm,ra,ram,...) " /></div></td>
<td><div class="imagebutton" id="media"><img src="images/toolbox/media.gif" alt="تشغيل ملفات الصوت والصورة (mp3,wav,au,wma,mpg,mpeg,wmv,avi,...)" /></div></td>
<td><div class="imagebutton" id="flash"><img src="images/toolbox/flash.gif" alt="إدخال فلاش" ></div></td>

<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="18" /></td>

<td><div class="imagebutton" id="mleft"><img src="images/toolbox/mleft.gif" alt="تحريك إلى اليسار" /></div></td>
<td><div class="imagebutton" id="mright"><img src="images/toolbox/mright.gif" alt="تحريك إلى اليمين" /></div></td>
<td><div class="imagebutton" id="mup"><img src="images/toolbox/mup.gif" alt="تحريك إلى الأعلى" /></div></td>
<td><div class="imagebutton" id="mdown"><img src="images/toolbox/mdown.gif" alt="تحريك إلى الأسفل" /></div></td>

<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="18" /></td>

<td><div class="imagebutton" id="line"><img src="images/toolbox/line.gif" alt="خط فاصل" /></div></td>
<td><div class="imagebutton" id="poem"><img src="images/toolbox/poem.gif" alt="تنسيق قصيدة شعرية" /></div></td>
<td><div class="imagebutton" id="frame"><img src="images/toolbox/frame.gif" alt="إنشاء إطار" /></div></td>
</tr>
</table>
</div>
<!-- /third control row -->

<div class="controlholder">
<span class="imagebutton"><span class="smallfont">
<label for="rb_mode_0"><input type="radio" name="mode" value="0" id="rb_mode_0" onclick="setmode(this.value)" $modechecked[0] />$vbphrase[guided_mode]</label>
<label for="rb_mode_1"><input type="radio" name="mode" value="1" id="rb_mode_1" onclick="setmode(this.value)" $modechecked[1] />$vbphrase[enhanced_mode]</label>
</span></span>
</div>

<!-- end control bar --></div><!-- / end control bar -->



</td>
</tr>
<tr valign="top">
<td class="controlbar">

<!-- edit text area -->
<textarea name="message" rows="20" cols="60" wrap="virtual" style="width:$stylevar[messagewidth]; height:250px" tabindex="1">$newpost[message]</textarea>
<!-- / edit text area -->

</td>
<if condition="$smiliebox"><td class="controlbar">$smiliebox</td></if>
</tr>
</table>



<script type="text/javascript" src="clientscript/poem_standard.js"></script>
<!-- end message area --></div><!-- / end message area -->


   ملحوظه :
   التعديلات باللون الأحمر.
   نسخه من القالب المعدل موجوده في مجلد templates.


إفتح قالب editor_toolbar_wysiwyg

إستبدل محتوياته بالأتي:

<!-- load scripts -->
$vBeditTemplate[clientscript]

<!-- start message area --><div id="vBulletin_editor" style="text-align:$stylevar[left]"><!-- / start message area -->


<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
<td colspan="2">



<!-- start control bar --><div id="controlbar"><!-- / start control bar -->

<!-- first control row -->
<div class="controlholder">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><div class="imagebutton" id="cmd_removeformat"><img src="$stylevar[imgdir_editor]/removeformat.gif" alt="$vbphrase[remove_text_formatting]" width="21" height="20" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>

<if condition="$show['font_bbcode']">
<td style="position:relative">
<div class="imagebutton" id="cmd_fontname">
<table class="popup_control" id="fontControl" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="popup_feedback" id="fontFeedback">$vBeditTemplate[fontfeedback]</td>
<td class="popup_pickbutton" id="fontButton"><img src="$stylevar[imgdir_editor]/menupop.gif" alt="$vbphrase[open_menu]" width="11" height="16" /></td>
</tr>
</table>
</div>
<!-- FONTS POPUP -->
<div id="popup_fontname" class="popupwindow" style="width:200px; height:220px; display:none; position:absolute; top:21px; filter:alpha(enabled=1,opacity=100)">
<table id="fonttable" cellpadding="0" cellspacing="0" border="0" width="183">
<col></col>
<col width="100%"></col>
<script type="text/javascript"> build_fontoptions(true); </script>
</table>
</div>
<!-- END FONTS POPUP -->
</td>
</if>

<if condition="$show['size_bbcode']">
<td style="position:relative">
<div class="imagebutton" style="left:0px" id="cmd_fontsize">
<table class="popup_control" id="sizeControl" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="popup_feedback" id="sizeFeedback">$vBeditTemplate[sizefeedback]</td>
<td class="popup_pickbutton" id="sizeButton"><img src="$stylevar[imgdir_editor]/menupop.gif" alt="$vbphrase[open_menu]" width="11" height="16" /></td>
</tr>
</table>
</div>
<!-- SIZES POPUP -->
<div id="popup_fontsize" class="popupwindow" style="width:36px; height:222px; display:none; position:absolute; top:21px; filter:alpha(enabled=1,opacity=100)">
<table id="sizetable" cellpadding="0" cellspacing="0" border="0">
<script type="text/javascript"> build_sizeoptions(true); </script>
</table>
</div>
<!-- END SIZES POPUP -->
</td>
</if>

<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>

<if condition="$show['color_bbcode']">
<td style="position:relative">
<div class="imagebutton" style="left:0px" id="cmd_forecolor">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img id="instantcolor" src="$stylevar[imgdir_editor]/color.gif" alt="$vbphrase[color]" width="21" height="20" /><img id="colorbar" style="display:none; background:black; <if condition="is_browser('ie')">position:absolute; top:15px; left:2px<else />position:relative; top:-6px; left:1px;</if>" src="$vboptions[cleargifurl]" width="16" height="4" alt="" /></td>
<td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" alt="$vbphrase[open_menu]" width="11" height="16" /></td>
</tr>
</table>
</div>
<!-- COLORS POPUP -->
<div id="popup_forecolor" class="popupwindow" style="width:144px; height:90px; display:none; position:absolute; top:21px; filter:alpha(enabled=1,opacity=100)">
<table id="colortable" cellpadding="0" cellspacing="0" border="0">
<script type="text/javascript"> build_coloroptions(true); </script>
<if condition="$show['syscolorpicker']">
<tr>
<td colspan="8" style="height:4px"><div></div></td>
</tr>
<tr>
<td class="otextlink" id="morecolors" colspan="8">$vbphrase[more_colors] <object id="syscolorpicker" classid="clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b" width="0px" height="0px"></object></td>
</tr>
</if>
</table>
</div>
<!-- END COLORS POPUP -->
</td>
</if>

<if condition="$show['wysiwygsmilies']">
<td style="position:relative">
<div class="imagebutton" style="left:0px" id="cmd_smilie">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="$stylevar[imgdir_editor]/smilie.gif" alt="$vbphrase[insert_smilie]" width="21" height="20" /></td>
<td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" alt="$vbphrase[open_menu]" width="11" height="16" /></td>
</tr>
</table>
</div>
<!-- START SMILIES POPUP -->
<div id="popup_smilie" class="popupwindow" style="width:150px; height:220px; display:none; position:absolute; top:21px; filter:alpha(enabled=1,opacity=100)">
<table id="smilietable" cellpadding="0" cellspacing="0" border="0" width="133">
$vBeditTemplate[smiliepopup]
<if condition="$show['wysiwygsmilieslink']">
<tr><td><hr /></td></tr>
<tr><td class="otextlink" id="moresmilies" style="padding:$stylevar[cellpadding]px"><phrase 1="$vboptions[wysiwyg_smtotal]" 2="$totalsmilies">$vbphrase[showing_x_smilies_of_y_total]</phrase><br />-- $vbphrase[show_all_smilies] --</td></tr>
</if>
</table>
</div>
<!-- END SMILIES POPUP -->
</td>
</if>

<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>
<td><div class="imagebutton" id="cmd_cut"><img src="$stylevar[imgdir_editor]/cut.gif" alt="$vbphrase[cut]" width="21" height="20" /></div></td>
<td><div class="imagebutton" id="cmd_copy"><img src="$stylevar[imgdir_editor]/copy.gif" alt="$vbphrase[copy]" width="21" height="20" /></div></td>
<td><div class="imagebutton" id="cmd_paste"><img src="$stylevar[imgdir_editor]/paste.gif" alt="$vbphrase[paste]" width="21" height="20" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>
<td><div class="imagebutton" id="cmd_undo"><img src="$stylevar[imgdir_editor]/undo.gif" alt="$vbphrase[undo]" width="21" height="20" /></div></td>
<td><div class="imagebutton" id="cmd_redo"><img src="$stylevar[imgdir_editor]/redo.gif" alt="$vbphrase[redo]" width="21" height="20" /></div></td>
</tr>
</table>
</div>
<!-- / first control row -->

<!-- second control row -->
<div class="controlholder">
<table cellpadding="0" cellspacing="0" border="0">
<tr>

<if condition="$show['basic_bbcode']">
<td><div class="imagebutton" id="cmd_bold"><img src="$stylevar[imgdir_editor]/bold.gif" alt="$vbphrase[bold]" width="21" height="20" /></div></td>
<td><div class="imagebutton" id="cmd_italic"><img src="$stylevar[imgdir_editor]/italic.gif" alt="$vbphrase[italic]" width="21" height="20" /></div></td>
<td><div class="imagebutton" id="cmd_underline"><img src="$stylevar[imgdir_editor]/underline.gif" alt="$vbphrase[underline]" width="21" height="20" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>
</if>

<if condition="$show['align_bbcode']">
<td><div class="imagebutton" id="cmd_justifyleft"><img src="$stylevar[imgdir_editor]/justifyleft.gif" alt="$vbphrase[align_left]" width="21" height="20" /></div></td>
<td><div class="imagebutton" id="cmd_justifycenter"><img src="$stylevar[imgdir_editor]/justifycenter.gif" alt="$vbphrase[align_center]" width="21" height="20" /></div></td>
<td><div class="imagebutton" id="cmd_justifyright"><img src="$stylevar[imgdir_editor]/justifyright.gif" alt="$vbphrase[align_right]" width="21" height="20" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>
</if>

<if condition="$show['list_bbcode']">
<td><div class="imagebutton" id="cmd_insertorderedlist"><img src="$stylevar[imgdir_editor]/insertorderedlist.gif" alt="$vbphrase[ordered_list]" width="21" height="20" /></div></td>
<td><div class="imagebutton" id="cmd_insertunorderedlist"><img src="$stylevar[imgdir_editor]/insertunorderedlist.gif" alt="$vbphrase[unordered_list]" width="21" height="20" /></div></td>
</if>

<if condition="$show['align_bbcode'] OR $show['list_bbcode']">
<td><div class="imagebutton" id="cmd_outdent"><img src="$stylevar[imgdir_editor]/outdent.gif" alt="$vbphrase[decrease_indent]" width="21" height="20" /></div></td>
<td><div class="imagebutton" id="cmd_indent"><img src="$stylevar[imgdir_editor]/indent.gif" alt="$vbphrase[increase_indent]" width="21" height="20" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>
</if>

<if condition="$show['url_bbcode']">
<td><div class="imagebutton" id="cmd_createlink"><img src="$stylevar[imgdir_editor]/createlink.gif" alt="$vbphrase[insert_link]" width="21" height="20" /></div></td>
<td><div class="imagebutton" id="cmd_unlink"><img src="$stylevar[imgdir_editor]/unlink.gif" alt="$vbphrase[remove_link]" width="21" height="20" /></div></td>
<td><div class="imagebutton" id="cmd_createmail"><img src="$stylevar[imgdir_editor]/email.gif" alt="$vbphrase[insert_email_link]" width="21" height="20" /></div></td>
</if>

<if condition="$show['img_bbcode']">
<td><div class="imagebutton" id="cmd_insertimage"><img src="$stylevar[imgdir_editor]/insertimage.gif" alt="$vbphrase[insert_image]" width="21" height="20" /></div></td>
</if>
<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>
<if condition="$show['code_bbcode']">
<td><div class="imagebutton" id="cmd_wrap0_code"><img src="$stylevar[imgdir_editor]/code.gif" alt="$vbphrase[wrap_code_tags]" width="21" height="20" /></div></td>
</if>

<if condition="$show['html_bbcode']">
<td><div class="imagebutton" id="cmd_wrap0_html"><img src="$stylevar[imgdir_editor]/html.gif" alt="$vbphrase[wrap_html_tags]" width="21" height="20" /></div></td>
</if>

<if condition="$show['php_bbcode']">
<td><div class="imagebutton" id="cmd_wrap0_php"><img src="$stylevar[imgdir_editor]/php.gif" alt="$vbphrase[wrap_php_tags]" width="21" height="20" /></div></td>
</if>

<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>
<td><div class="imagebutton" id="cmd_wrap0_quote"><img src="$stylevar[imgdir_editor]/quote.gif" alt="$vbphrase[wrap_quote_tags]" width="21" height="20" /></div></td>
$vBeditTemplate[extrabuttons]

</tr>
</table>
</div>
<!-- / second control row -->

<!-- third control row -->
<div id="toolboxholder">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><div class="imagebutton" id="glow"><img src="images/toolbox/glow.gif" alt="وضع إشعاعي" /></div></td>
<td><div class="imagebutton" id="blink"><img src="images/toolbox/blink.gif" alt="وميض" /></div></td>
<td><div class="imagebutton" id="glint"><img src="images/toolbox/glint.gif" alt="بريق" /></div></td>
<td><div class="imagebutton" id="gradient"><img src="images/toolbox/gradient.gif" alt="ألوان متدرجة" /></div></td>

<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="18" /></td>

<td><div class="imagebutton" id="rplayer"><img src="images/toolbox/rplayer.gif" alt="تشغيل ملف رييل بلاير (rm,ra,ram,...) " /></div></td>
<td><div class="imagebutton" id="media"><img src="images/toolbox/media.gif" alt="تشغيل ملفات الصوت والصورة (mp3,wav,au,wma,mpg,mpeg,wmv,avi,...)" /></div></td>
<td><div class="imagebutton" id="flash"><img src="images/toolbox/flash.gif" alt="إدخال فلاش" ></div></td>

<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="18" /></td>

<td><div class="imagebutton" id="mleft"><img src="images/toolbox/mleft.gif" alt="تحريك إلى اليسار" /></div></td>
<td><div class="imagebutton" id="mright"><img src="images/toolbox/mright.gif" alt="تحريك إلى اليمين" /></div></td>
<td><div class="imagebutton" id="mup"><img src="images/toolbox/mup.gif" alt="تحريك إلى الأعلى" /></div></td>
<td><div class="imagebutton" id="mdown"><img src="images/toolbox/mdown.gif" alt="تحريك إلى الأسفل" /></div></td>

<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="18" /></td>

<td><div class="imagebutton" id="line"><img src="images/toolbox/line.gif" alt="خط فاصل" /></div></td>
<td><div class="imagebutton" id="poem"><img src="images/toolbox/poem.gif" alt="تنسيق قصيدة شعرية" /></div></td>
<td><div class="imagebutton" id="frame"><img src="images/toolbox/frame.gif" alt="إنشاء إطار" /></div></td>
</tr>
</table>
</div>
<!-- / third control row -->

<!-- end control bar --></div><!-- / end control bar -->



</td>
</tr>
<tr valign="top">
<td class="controlbar">



<!-- hidden field to contain html -->
<input type="hidden" name="WYSIWYG_HTML" id="html_hidden_field" value="$newpost[message_html]" />

<!-- edit text area -->
<if condition="is_browser('ie')">

<!-- internet explorer text area -->
<div id="htmlbox" class="wysiwyg" tabindex="1" style="width:$stylevar[messagewidth]; height:250px; padding:8px">$newpost[message]</div>

<else />

<!-- mozilla text area -->
<iframe id="htmlbox" tabindex="1" style="width:$stylevar[messagewidth]; height:250px"></iframe>

</if>
<!-- / edit text area -->



</td>

<if condition="$smiliebox"><td class="controlbar">$smiliebox</td></if>
</tr>
</table>




<!-- end message area --></div><!-- / end message area -->




<if condition="is_browser('ie')">
<!-- initialization script -->
<script type="text/javascript">
<!--
editInit();
//-->
</script>
</if>
<script type="text/javascript" src="clientscript/poem_wysiwyg.js"></script>


   ملحوظه :
   التعديلات باللون الأحمر.
   نسخه من القالب المعدل موجوده في مجلد templates.